﻿//-----------------------------------------------------------------------
// <copyright>
// This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
// </copyright>
//----------------------------------------------------------------------- 
using System;
using System.Reflection;

namespace Fulcrum.DispatcherProxies
{
    public class DispatcherProxyPropertyInfo: DispatcherProxyInstanceMemberInfo
    {
        public DispatcherProxyPropertyInfo(PropertyInfo propertyInfo, bool canRead, bool canWrite, bool isNew)
            : base(propertyInfo, isNew)
        {
            this.PropertyType = propertyInfo.PropertyType;
            this.Name = propertyInfo.Name;
            this.CanRead = canRead;
            this.CanWrite = canWrite;
        }

        public bool CanRead
        {
            get;
            private set;
        }

        public bool CanWrite
        {
            get;
            private set;
        }

        public Type PropertyType
        {
            get;
            private set;
        }

        public string Name
        {
            get;
            private set;
        }
    }
}
